﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.OleDb;

namespace VentaElectrodomesticos.Datos
{
    public static class Conexion
    {
        public static OleDbConnection getConnection(string dbName, string userName, string password)
        {
            OleDbConnection conn = new OleDbConnection("Provider=SQLNCLI;Server=localhost;Database=" + dbName + ";Uid=" + userName + "; Pwd=" + password + ";");
            return conn;
        }
    }
}
